﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace FRMS.Model
{
    public class VoucherInfo
    {
        public int ID { get; set; }
        public int OwnerID { get; set; }
        public int DeviceID { get; set; }
        public string AuthorizedFloor { get; set; } = string.Empty;
        public string EffectiveStarttime { get; set; } = string.Empty;
        public string EffectiveEndtime { get; set; } = string.Empty;
        public int CarduploadFlag { get; set; }
        public int PicuploadFlag { get; set; }
        public int Lssuestate { get; set; }
        public string SuccessTime { get; set; } = string.Empty;
        public string Operator { get; set; } = string.Empty;
        public string OperatorTime { get; set; } = string.Empty;
        public string DeviceName { get; set; } = string.Empty;
        public string ElevatorName { get; set; } = string.Empty;
        public int BuildID { get; set; }
        public int DeviceType { get; set; }
        public string DeviceNO { get; set; } = string.Empty;
        public string CardNO { get; set; } = string.Empty;
        public string UUID { get; set; } = string.Empty;
        public string PicturePath { get; set; } = string.Empty;
        public int OwnerType { get; set; }
        public string OwnerName { get; set; } = string.Empty;
        public string Phone { get; set; } = string.Empty;
        public string DeviceTypeName { get; set; } = string.Empty;
        public int PicShow { get; set; }
        public int CardShow { get; set; }
        public int VirtualCard { get; set; }
        public string DeviceIP { get; set; } = string.Empty;
        public int m_lUserID { get; set; }
        public int Recordhead { get; set; }//记录头
        public int Recordtail { get; set; }//记录尾
        public string FloorInfo { get; set; } = string.Empty;
        public string pFloorInfo { get; set; } = string.Empty;
        public string DeviceState { get; set; } = string.Empty;
        public int IsDelete { get; set; }
        public int projectID { get; set; }
        public string AuthData { get; set; } = string.Empty;
        public int Flag { get; set; }
        public string Session { get; set; } = string.Empty;
        public string DeviceUuid { get; set; } = string.Empty;
        public string PhotoData { get; set; } = string.Empty;
        public string BuildingName { get; set; } = string.Empty;
        public int apply_type { get; set; }
        public string LadderID { get; set; } = string.Empty;
        public int QRCodeFlag { get; set; }
        public int SyncFlag { get; set; }
        public string project_key { get; set; } = string.Empty;
        public string server_addr { get; set; } = string.Empty;

    }

    public class ProVoucherInfo
    {
        public OwnerInfo OwnerInfo { get; set; }
        public List<VoucherInfo> Vouchers_List { get; set; }
    }

    public class QRVoucher
    {
        public int ID { get; set; }
        public int AuditId { get; set; }
        public int DeviceId { get; set; }
        public string AuthorizedFloor { get; set; }
        public string EffectiveStarttime { get; set; }
        public string EffectiveEndtime { get; set; }
        public int projectID { get; set; }
        public int SyncFlag { get; set; }
        public int LadderID { get; set; }
        public string DeviceNO { get; set; }
        public string DeviceName { get; set; }
        public string FloorInfo { get; set; }
        public string pFloorInfo { get; set; }
        public string server_addr { get; set; }
        public string project_key { get; set; }
    }
}
